package com.vcc.service.service;

import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.ClientRolePermission;

import java.util.List;

public interface ClientRolePermissionService extends IService<ClientRolePermission> {

    Boolean existsByRoleIdAndPermissionId(Long roleId, Long permissionId);

    boolean deleteByRoleId(Long roleId);


    boolean deleteByPermissionId(Long permissionId);

    Boolean deleteByRoleIdsAndPermissionId(Long permissionId, List<Long> roleIds);
}
